﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="TransType_List.aspx.cs" Inherits="TimKen.Web.Admin.TransType.TransType_List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
    <%=GetLangString("MenuTransportationTypeList")%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">

    <script type="text/javascript">
        function checkForm() {
            if (document.getElementById("<%=this.txtTransTypeNameCN.ClientID%>").value == "" || document.getElementById("<%=this.txtTransTypeNameEN.ClientID%>").value == "") {
                alert(x_TransTypeNameNotAllowBlank);
                return false;
            }
            return true;
        }
    </script>

    <div class="main-div">
        <table width="100%" id="general-table">
            <tr>
                <th class="label">
                    <%=GetLangString("TransTypeName")%>：
                </th>
                <td>
                    <asp:HiddenField ID="txtTransTypeID" runat="server" />
                    <ux:LanguagePic ID="LanguagePic3" runat="server" languageName="Chinese" />
                    <asp:TextBox runat="server" ID="txtTransTypeNameCN" ReadOnly="true"></asp:TextBox>
                    <ux:LanguagePic ID="LanguagePic4" runat="server" languageName="English" />
                    <asp:TextBox runat="server" ID="txtTransTypeNameEN" ReadOnly="true"></asp:TextBox>
                    <span class="require-field">*</span>
                </td>
            </tr>
        </table>
    </div>
    <div class="list-div">
        <!-- 产品列表 -->
        <asp:GridView ID="grdTransType" runat="server" AutoGenerateColumns="False" DataKeyNames="TransTypeID"
            PageSize="15" AllowSorting="True" CssClass="grid" OnRowCommand="grdTransType_RowCommand">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <%=GetLangString("TransTypeName")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("TransTypeName")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemStyle Width="80" HorizontalAlign="Center" />
                    <HeaderTemplate>
                        <%=GetLangString("Operation")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:ImageButton ID="btnEdit" runat="server" ToolTip='<%#GetLangString("DetailInfo")%>'
                            ImageUrl="~/Admin/images/icon_detail.gif" CommandName="EditEvent" CommandArgument='<%#Eval("TransTypeID")%>' />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle HorizontalAlign="Center" />
        </asp:GridView>
    </div>
</asp:Content>
